package com.example.paopao.consumer.memer.service.impl;

import com.example.paopao.consumer.memer.dao.persist.repository.IItegralsRepository;
import com.example.paopao.consumer.memer.pojo.vo.IntegraRacheGetVO;
import com.example.paopao.consumer.memer.pojo.vo.IntegralVO;
import com.example.paopao.consumer.memer.pojo.vo.ResultIntegrals;
import com.example.paopao.consumer.memer.service.IIntegralsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IntegralsServiceImpl implements IIntegralsService {
    @Autowired
    private IItegralsRepository iItegralsRepository;

    @Override
    public ResultIntegrals getIntegrals(Long userId) {
        return iItegralsRepository.getIntegrals(userId);
    }

    @Override
    public List<IntegralVO> listIntegral() {
        return iItegralsRepository.listIntegral();
    }

    @Override
    public List<IntegraRacheGetVO> listIntracha(Long userId) {
        return iItegralsRepository.listIntracha(userId);
    }
}
